package zhr.chapter5.MemberCardDemoApp.cardpackage;

public class MemberCard extends  Card{
    public MemberCard() {
        this.type="MemberCard";
    }

    public MemberCard(String type, float amount) {
        super(type, amount);
    }

    @Override
    public float shouldPay(float totalPrice) {
        return totalPrice*0.9f;
    }
}
